package com.yuke.cloud.service.wmc.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.wmc.dto.WmsGoodsSalesDto;
import com.yuke.cloud.service.wmc.dto.WmsStatisticsDto;
import com.yuke.cloud.service.wmc.dto.WmsStockInDto;
import com.yuke.cloud.service.wmc.entity.WmsStockIn;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface WmsStockInMapper extends MyMapper<WmsStockIn> {
    List<WmsStockInDto> getWmsStockInByCondition(@Param("wmsStockInDto") WmsStockInDto wmsStockInDto);

    List<WmsStatisticsDto> costUnitPriceByList(WmsStatisticsDto wmsStatisticsDto);

    List<WmsGoodsSalesDto> costUnitPrice(@Param("goodSalesApiDto")WmsGoodsSalesDto goodSalesApiDto, @Param("beginTime")Date beginTime, @Param("endTime")Date endTime);

    List<WmsGoodsSalesDto> goodsSalesJoin(WmsGoodsSalesDto goodsSalesDto);

    WmsGoodsSalesDto costUnitPriceBylimit(Long id);

    List<WmsStockInDto> countBySpec(WmsStockInDto wmsStockInDto);

    List<WmsStockInDto> findDescPurchasePrice(List<Long> specIds);

    Integer changeCheckIn(WmsStockInDto wmsStockInDto);
}
